<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bai 3.8</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="Bai3_8.php">
  <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr bgcolor="#003333" style="text-align: center; font-size: 24px; color: #FFF;">
      <td colspan="2">SẮP XẾP MẢNG</td>
    </tr>
    <tr>
      <td nowrap="nowrap" bgcolor="#99FFFF">Nhập mảng:</td>
      <td nowrap="nowrap" bgcolor="#99FFFF"><input name="mang" type="text" id="mang" value="<?php echo $_POST['mang'];?>" size="90%" /> 
        <span style="color: #F00; font-weight: bold;">(*)</span></td>
    </tr>
    <tr>
      <td nowrap="nowrap" bgcolor="#99FFFF">&nbsp;</td>
      <td nowrap="nowrap" bgcolor="#99FFFF"><input type="submit" name="button" id="button" value="Sắp xếp tăng/ giảm" /></td>
    </tr>
    <tr>
      <td nowrap="nowrap" bgcolor="#3399FF" style="color: #F00; font-weight: bold;">Sau khi sắp xếp:</td>
      <td nowrap="nowrap" bgcolor="#3399FF">&nbsp;</td>
    </tr>
    <tr>
      <td nowrap="nowrap" bgcolor="#3399FF">Tăng dần:</td>
      <td nowrap="nowrap" bgcolor="#3399FF"><input name="tangdan" type="text" disabled="disabled" id="tangdan" style="background-color:#0FF" value="<?php echo $tangdan;?>" size="90%" /></td>
    </tr>
    <tr>
      <td nowrap="nowrap" bgcolor="#3399FF">Giảm dần:</td>
      <td nowrap="nowrap" bgcolor="#3399FF"><input name="giamdan" type="text" disabled="disabled" id="giamdan" style="background-color:#0FF" value="<?php echo $giamdan;?>" size="90%" /></td>
    </tr>
    <tr bgcolor="#00FFFF" style="text-align: center">
      <td colspan="2"><span style="color: #F00; font-weight: bold;">(*)</span> Các phần tử trong mảng sẽ cách nhau bằng dấu &quot;,&quot;</td>
    </tr>
  </table>
</form>
</body>
</html>